from django.conf.urls import patterns, include, url

#from django.contrib import admin
#admin.autodiscover()

from htstool.views import ImportWizard, WIZARD_FORMS

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'HTSwebtool.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),
    
    # model views
    url(r'^$', 'htstool.views.home', name='home'),
    url(r'^import/$', ImportWizard.as_view(WIZARD_FORMS)),
    #url(r'^exp/new$', 'htstool.views.createexpview', name='createexpview'),
    url(r'^exp/(?P<expid>[a-zA-Z0-9\_\-]+)$', 'htstool.views.expview', name='expview'),
    url(r'^g/(?P<grpid>[a-zA-Z0-9\_\-]+)$', 'htstool.views.grpview', name='grpview'),
    url(r'^p/(?P<plateid>[a-zA-Z0-9\_\-]+)$', 'htstool.views.plateview', name='plateview'),
    
    #url(r'^group$', 'htstool.views.groupview', name='grpview'),
    #url(r'^qcbox/(?P<groupid>[a-zA-Z0-9\_\-]+)$', 'htstool.views.groupBoxQCview', name='qcboxview'),
    #url(r'^qcerrbar/(?P<expid>[a-zA-Z0-9\_\-]+)$', 'htstool.views.errbarQCview', name='qcerrbarview'),
    
    # action views
    url(r'^normalise/$', 'htstool.views.normalisationview', name='normview'),
    url(r'^summarise/$', 'htstool.views.summarisationview', name='summview'),
    url(r'^chgrpname/$', 'htstool.views.chgrpname', name='chgrpnameview'),
    url(r'^group_plates/$', 'htstool.views.groupplates', name='groupplates'),
    url(r'^actions/$', 'htstool.views.actions', name='actions'),
    url(r'^getcontxt/$', 'htstool.views.getcontxt', name='getcontxt'),
    
    url(r'^readraw/$', 'htstool.views.readraw', name='readraw'),


    # QC views
    url(r'^errbar/$', 'htstool.views.errbarQCview', name='errbar'),
    url(r'^boxqc/$', 'htstool.views.groupBoxQCview', name='box'),
    url(r'^box_corr/$', 'htstool.views.groupBoxWithCorr', name='box_corr'),
    
    # del views
    url(r'^d/plate/(?P<plateid>[a-zA-Z0-9\_\-]+)$', 'htstool.views.deleteplateview', name='delplview'),
    url(r'^d/group/(?P<groupid>[a-zA-Z0-9\_\-]+)$', 'htstool.views.deletegroupview', name='delgrpview'),
    url(r'^d/exp/(?P<expid>[a-zA-Z0-9\_\-]+)$', 'htstool.views.deleteexpview', name='delexpview'),

    # util views
    url(r'^getchemblID/$', 'htstool.views.getchemblID', name='chembl'),
    url(r'^links/$', 'htstool.views.getlinks', name='links'),



    #url(r'^admin/', include(admin.site.urls)),

)
